package com.ruoyi.bank.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bank.mapper.BankSenatorMapper;
import com.ruoyi.bank.domain.BankSenator;
import com.ruoyi.bank.service.IBankSenatorService;

/**
 * 评议员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-15
 */
@Service
public class BankSenatorServiceImpl implements IBankSenatorService 
{
    @Autowired
    private BankSenatorMapper bankSenatorMapper;

    /**
     * 查询评议员管理
     * 
     * @param reviewerId 评议员管理主键
     * @return 评议员管理
     */
    @Override
    public BankSenator selectBankSenatorByReviewerId(Long reviewerId)
    {
        return bankSenatorMapper.selectBankSenatorByReviewerId(reviewerId);
    }

    /**
     * 查询评议员管理列表
     * 
     * @param bankSenator 评议员管理
     * @return 评议员管理
     */
    @Override
    public List<BankSenator> selectBankSenatorList(BankSenator bankSenator)
    {
        return bankSenatorMapper.selectBankSenatorList(bankSenator);
    }

    /**
     * 新增评议员管理
     * 
     * @param bankSenator 评议员管理
     * @return 结果
     */
    @Override
    public int insertBankSenator(BankSenator bankSenator)
    {
        return bankSenatorMapper.insertBankSenator(bankSenator);
    }

    /**
     * 修改评议员管理
     * 
     * @param bankSenator 评议员管理
     * @return 结果
     */
    @Override
    public int updateBankSenator(BankSenator bankSenator)
    {
        return bankSenatorMapper.updateBankSenator(bankSenator);
    }

    /**
     * 批量删除评议员管理
     * 
     * @param reviewerIds 需要删除的评议员管理主键
     * @return 结果
     */
    @Override
    public int deleteBankSenatorByReviewerIds(Long[] reviewerIds)
    {
        return bankSenatorMapper.deleteBankSenatorByReviewerIds(reviewerIds);
    }

    /**
     * 删除评议员管理信息
     * 
     * @param reviewerId 评议员管理主键
     * @return 结果
     */
    @Override
    public int deleteBankSenatorByReviewerId(Long reviewerId)
    {
        return bankSenatorMapper.deleteBankSenatorByReviewerId(reviewerId);
    }
}
